package com.jtny.nytb.equipment.domain.areatype;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jtny.component.core.domain.BaseDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author 智慧能源中心 - xqx
 * @package com.jtny.energymonitor.equipment.domain
 * @fileName DeviceAreaDO.java
 * @createTime 2023年09月15日 13:34
 * @Copyright© 2023 jtny
 * 江投能源技术研究院 版权所有
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("em_equipment_area")
public class DeviceAreaDO extends BaseDO {

    public static final int DISABLE = 1;
    public static final int ENABLE = 0;
    public static final int DELETE = 9;

    @TableField("parent_id")
    @ApiModelProperty(value = "父id")
    private Long parentId;

    @TableField("all_path")
    @ApiModelProperty(value = "全路径")
    private String allPath;

    @TableField("level")
    @ApiModelProperty(value = "等级")
    private Integer level;

    @TableField("name")
    @ApiModelProperty(value = "设备名称")
    private String name;

    @TableField("code")
    @ApiModelProperty(value = "设备编码")
    private String code;

    @TableField("status")
    @ApiModelProperty(value = "是否禁用(0:禁用,1:启用,9:删除)")
    private Integer status;
}
